/**
 * @author 0283000115
 * @date 2017年9月19日-下午1:44:45
 */
package com.zte.claa.inficombo.csa.app.dao.mysql.impl;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.zte.claa.inficombo.csa.app.model.proj.ProjCustAttrBean;

/**
 * @author 0283000115
 *
 */

@Repository
public interface ProjCustAttrMapper {
	// 查询所有ProjCustAttrBean信息
	public List<ProjCustAttrBean> queryProjAllCustAttrBeans(@Param("projectId") String projectId) throws Exception;
	
	// 查询指定ProjCustAttrBean信息
	public List<ProjCustAttrBean> queryAllCustAttrBeans() throws Exception;
	
	// 查询ProjCustAttrBean信息
	public ProjCustAttrBean queryProjCustAttrBean(@Param("projectId") String projectId, 
			@Param("attrName") String attrName) throws Exception;

	// 新建ProjCustAttrBean.
	public void addProjCustAttrBean(@Param("p") ProjCustAttrBean p) throws Exception;
	
	// 修改ProjCustAttrBean.
	public int modifyProjCustAttrBean(@Param("p") ProjCustAttrBean p) throws Exception;

	// 删除ProjCustAttrBean, attrName可为空.
	public int removeProjCustAttrBean(@Param("projectId") String projectId, 
			@Param("attrName") String attrName) throws Exception;

}
